Journal Repository
@Singleton
Repository class responsible for handling operations related to journal entries. It acts as a bridge between the data source and the rest of the application, providing methods to add, update, delete, and fetch journal entries.
Functions
Link copied to clipboard
Adds a new journal entry to the Firestore database.
Link copied to clipboard
Deletes a journal entry using the provided JournalEntry object.
Deletes a journal entry by its ID.
Link copied to clipboard
Returns a Flow that emits a list of journal entries in real-time, listening for updates from Firestore.
Link copied to clipboard
Updates an existing journal entry in the Firestore database. If the entry does not exist, it will be added.